package com.hxzy.controller.admin.employee.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "员工新增模型")
@Getter
@Setter
public class EmployeeAddReq {

    /**
     * 登录账户
     */
    @NotBlank(message = "登录账户不能为空")
    @ApiModelProperty(value = "登录账户",required = true)
    private String loginName;

    /**
     * 登录密码
     */
    @NotBlank(message = "登录密码不能为空")
    @Length(min=4,max=20,message = "登录密码长度在4~20个字符之间")
    @ApiModelProperty(value = "登录密码",required = true)
    private String loginPwd;

    @NotBlank(message = "确认密码不能为空")
    @ApiModelProperty(value = "确认密码",required = true)
    private String loginPwdConfirm;

    /**
     * 性别(0 女 1 男)
     */
    @NotBlank(message = "性别不能为空")
    @ApiModelProperty(value = "性别(0 女 1 男)",required = true)
    private String gender;

    /**
     * 状态（1停用，0正常）
     */
    @NotBlank(message = "状态不能为空")
    @ApiModelProperty(value = "状态（1停用，0正常）",required = true)
    private String status;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空")
    @ApiModelProperty(value = "头像",required = true)
    private String avatar;

}
